!!!
%html
  %head
    %title 基恩中国
    %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
    %meta{"http-equiv"=>"X-UA-Compatible", :content=>"IE=edge"}/
    %meta{:name=>'viewport', :content=>'width=device-width, initial-scale=1'}/

    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
    = javascript_include_tag :application, 'data-turbolinks-track': 'reload'
    -#%script{:src => "/assets/js/jquery-ui-1.10.3.min.js", "data-turbolinks-track" => 'true'}
    = csrf_meta_tag
    = yield(:head)

  %body{style: 'color:white; background:url(/assets/img/beijing.png) no-repeat; background-size:100%; width:100%; overflow-x:hidden'}
    #limit-and-center{style: "margin:0 auto; width: 1280px;"}
      %nav.navbar.navbar-default{role: 'navigation', style: "margin-bottom: 0px"}
        = link_to root_path do
          %img{src: "/assets/img/kea_logo.png", style: 'width: 195px; height: 60px; padding-left: 50px'}
        %ul.nav.navbar-nav.pull-right{style: 'padding-top: 5px; padding-right: 30px'}
          %li.dropdown= link_to 'HOME', root_path
          - (Post.plate_id.options.delete_if {|a| a[0] == '新闻'}).each do |menu_title|
            %li
              %a.dropdown-toggle{"aria-expanded" => "false", "data-toggle" => "dropdown", :href => "#", :role => "button", style: "display: inline-block;"}= menu_title[0]
              %ul.dropdown-menu{:role => "menu"}
                - Post.with_plate_id(menu_title[1]).active_posts.each do |post|
                  %li= link_to post.title, controller: 'home_pages', action: 'post_view', id: post.id

      = yield

:javascript
  $('#carousel-example-generic').carousel({
    interval: 4000
  });
